function Icon({ icon, width, height }) {
  // icon:svg图片名称 width:宽度 height:高度
  return (
    <>
      <img
        // src={`/src/assets/icons/${icon}.svg`}
        src={`https://yjy-teach-oss.oss-cn-beijing.aliyuncs.com/reactbase/ka/${icon}.svg`}
        alt="icon"
        style={{
          width: width || 20,
          height: height || 20,
        }}
      />
    </>
  );
}

export default Icon;
